from django.db import models

# Create your models here.
class Sclass(models.Model):
    name = models.CharField(max_length=20)
class Course(models.Model):
    name = models.CharField(max_length=20)
    cla = models.ForeignKey(Sclass,on_delete=models.CASCADE)
class Stu(models.Model):
    name = models.CharField(max_length=20)
    username = models.CharField(max_length=100)
    password = models.CharField(max_length=100)
    cla = models.ForeignKey(to=Sclass,on_delete=models.CASCADE)